package com.booksmanager.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ Author     ：Yan
 * @ Date       ：Created in 9:12 2020/5/19
 * @ Description：分页插件
 * @ Modified By：
 * @Version: $
 */

@Configuration
public class MybatisConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
